//
// C++ Interface: qtaddinterface
//
// Description:
//
//
// Author: Willi Ballenthin <wilbal1087@gmail.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef QTADDINTERFACE_H
#define QTADDINTERFACE_H

#include <QWidget>
#include <QtCore>
#include <QtGui>
#include "activity.h"
#include "ui_activityeditwidget.h"

/**
    @author Willi Ballenthin <wilbal1087@gmail.com>
*/
class ActivityEditWidget : public QWidget
{
        Q_OBJECT
    public:
        ActivityEditWidget (QSqlDatabase* db, QWidget *parent = 0 );

        ~ActivityEditWidget();

    public slots:
        void submit();
        void clear();
        void clearStatusMessage();
        void edit(Activity* act);
        void updateView();

    signals:
        void updatedDb();
        void updatedModel();

    private:
        Activity* activity;
        QSqlDatabase*  db;
        Ui::ActivityEditWidget ui;

};

#endif
